<!--<?php
print <<<EOT
-->
	<div id="search">
		<form name="SEARCHFORM" id="search-form" method="get" action="{$_viewer->baseUrl}" onsubmit="onsearchs('{$_viewer->baseUrl}',this);return false;">
			<div class="select-box">
				<input type="hidden" value="{$_viewer->areatype}" name="areatype" />
<!--
EOT;
if($_viewer->areaName){
print<<<EOT
-->
				<span>$_viewer->areaName</span>
<!--
EOT;
}else{
print<<<EOT
-->
				<span>区域不限</span>
<!--
EOT;
}
print<<<EOT
-->
				<ul>
				<li val="">区域不限</li>
<!--
EOT;
foreach ( $_viewer->area as $key=>$value ) {
$sel = ($_viewer->areatype == $key) ? 'class="selected" selected="selected"' :'';
print<<<EOT
-->					
					<li val="{$key}" $sel>{$value}</li>
<!--
EOT;
}
print<<<EOT
-->	
				</ul>
			</div>
			<div class="select-box">
				<input type="hidden" value="{$_viewer->pricetype}" name="pricetype" />
				<!--
EOT;
if($_viewer->priceName){
print<<<EOT
-->
				<span>$_viewer->priceName</span>
<!--
EOT;
}else{
print<<<EOT
-->
				<span>租金不限</span>
<!--
EOT;
}
print<<<EOT
-->
				<ul>
				<li val="">租金不限</li>
<!--
EOT;
foreach ( $_viewer->price as $key=>$value ) {
$sel = ($_viewer->pricetype == $key) ? 'class="selected" selected="selected"' :'';
print<<<EOT
-->					
					<li val="{$key}" $sel>{$value}</li>
<!--
EOT;
}
print<<<EOT
-->	
				</ul>
			</div>
			<div class="select-box">
				<input type="hidden" value="{$_viewer->roomtype}" name="roomtype" />
<!--
EOT;
if($_viewer->roomName){
print<<<EOT
-->
				<span>$_viewer->roomName</span>
<!--
EOT;
}else{
print<<<EOT
-->
				<span>户型不限</span>
<!--
EOT;
}
print<<<EOT
-->
				<ul>
				<li val="">户型不限</span></li>
<!--
EOT;
foreach ( $_viewer->room as $key=>$value ) {
$sel = ($_viewer->roomtype == $key) ? 'class="selected" selected="selected"' :'';
print<<<EOT
-->					
					<li val="{$key}" $sel>{$value}</li>
<!--
EOT;
}
print<<<EOT
-->	
				</ul>
			</div>
			<div class="select-box">
<input type="hidden" value="{$_viewer->housetype}" name="housetype" />
<!--
EOT;
if($_viewer->houseName){
print<<<EOT
-->
				<span>$_viewer->houseName</span>
<!--
EOT;
}else{
print<<<EOT
-->
				<span>类型不限</span>
<!--
EOT;
}
print<<<EOT
-->
				<ul>
				<li val="">类型不限</span></li>
<!--
EOT;
foreach ( $_viewer->house as $key=>$value ) {
$sel = ($_viewer->housetype == $key) ? 'class="selected" selected="selected"' :'';
print<<<EOT
-->					
					<li val="{$key}" $sel>{$value}</li>
<!--
EOT;
}
$kvalue = $_viewer->keywords ? $_viewer->keywords : '请输入房源特征，地点或小区名';
print<<<EOT
-->	
				</ul>
			</div>
		<input type="text" value="{$kvalue}" name="keywords" id="q" style="" />
		<button id="q-btn" type="submit">搜 索</button>
		</form>
	</div>
<!--
EOT;
?>-->